package cn.edu.sdjzu.xg.bysj.domain;

import lombok.*;

import java.io.Serializable;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@ToString

//毕业设计类别
public final class GraduateProjectCategory implements Comparable<GraduateProjectCategory>, Serializable {
    private Integer id;

    private String no;
    private String description;
    private String remarks;


    /**
     * Constructs a <code>String</code> with all attributes
     * in name = value format.
     *
     * @return a <code>String</code> representation
     * of this object.
     */
    public String toString() {
        final String TAB = "    ";

        String retValue = "";

        retValue = "ProjectCategrory ( "
                + super.toString() + TAB
                + "id = " + this.id + TAB
                + "description = " + this.description + TAB
                + "no = " + this.no + TAB
                + "remarks = " + this.remarks + TAB
                + " )";

        return retValue;
    }

    @Override
    public int compareTo(GraduateProjectCategory o) {
        // TODO Auto-generated method stub
        return this.id - o.id;
    }
}
